#ifndef _BSP_PWM_H_
#define _BSP_PWM_H_
#include "stm32g0xx_hal.h"
#include "tim.h"

#define PWM_CHANNEL1            0
#define PWM_CHANNEL2            1

#define MAX_PWM_CMP				1000

void bsp_pwm_on(uint8_t _pwm);
void bsp_pwm_off(uint8_t _pwm);
void bsp_pwm_set_cmp(uint8_t _pwm, uint32_t _cmp_val);

#endif /* _BSP_PWM_H_ */
